<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>${menuDetail.name}</title>
<#include "/admin/main/include/link_head.ftl"/>
</head>

<body class="jr-body">
<@tags.editBtns btns="all" />
        <@tags.editForm forms="[{
            field:'roles',
            type:'treebox',
            bind:false,
            col:4,
            text:'角色',
            options:'editable:false,url:\\'../common-role/groupTreeShow?gid=${obj.gid}\\',multiple:true,value:[${obj.roles}]'
        },{
            col:8,
            type:'empty'
        },{
            field:'usern',
            type:'text',
            options:'required:true',
            col:4,
            text:'帐号'
        },{
            field:'password',
            type:'password',
            options:'required:true',
            col:4,
            text:'密码'
        },{
            field:'name',
            type:'text',
            col:4,
            text:'姓名'
        },{
            field:'sex',
            type:'select',
            col:4,
            options:'required:true,textField:\\'name\\',valueField:\\'id\\'',
            no:'100003',
            text:'性别'
        },{
            field:'company',
            type:'text',
            col:4,
            text:'公司'
        },{
            field:'dept',
            type:'text',
            col:4,
            text:'所属部门'
        },{
            field:'telephone',
            type:'text',
            col:4,
            text:'手机号'
        },{
            field:'email',
            type:'text',
            options:'required:false,validType:\\'email\\'',
            col:4,
            text:'邮箱'
        },{
            field:'state',
            type:'select',
            col:4,
            options:'required:true,textField:\\'name\\',valueField:\\'id\\'',
            no:'100004',
            text:'状态'
        },{
            field:'loginCount',
            type:'text',
            options:'readonly:true',
            col:4,
            text:'登录次数'
        },{
            field:'lastLoginDate',
            type:'text',
            options:'readonly:true',
            col:4,
            text:'最后登录时间'
        },{
            field:'lastLoginIp',
            type:'text',
            options:'readonly:true',
            col:4,
            text:'最后登录IP'
        },{
            field:'gid',
            type:'hidden'
        }]" action="adminSave" />
</body>
</html>
<#include "/admin/main/include/link_foot.ftl"/>